from jenkinsapi.jenkins import Jenkins


def get_server_instance():
    jenkins_url = 'http://jenkins.imagedz.com'
    server = Jenkins(jenkins_url, username='moumoumou', password='moumoumou')
    return server


server = get_server_instance()
print(server.version)


#输出结果2.277.2
